// 8.封装layout布局组件（要求有至少两个布局组件，一个为三段式布局，另一个为其他布局）

import { Outlet } from 'react-router-dom'
import Footer from '../../component/Footer'
import Header from '../../component/Header'
import './style.css'

const Main = () => {
    return <div className="main-box">
        <Header/>
        <div className="main-body">
            <Outlet />
        </div>
        <Footer />
    </div>
}

export default Main